package com.platform.hjt.erp.service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hjt.tools.dao.Page;
import com.hjt.tools.dao.PropertyFilter;
import com.platform.hjt.base.service.BaseService;
import com.platform.hjt.erp.dao.ErpStorageFlowDetailDAO;
import com.platform.hjt.erp.model.ErpStorageFlowDetail;

@Service
public class ErpStorageFlowDetailService extends BaseService{

	@Resource
	private ErpStorageFlowDetailDAO erpStorageFlowDetailDAO;
	
	public Page<ErpStorageFlowDetail> getErpStorageFlowDetailList(Page<ErpStorageFlowDetail> page, List<PropertyFilter> propertyFilterList){
		return erpStorageFlowDetailDAO.findPage(page, propertyFilterList);
	}
	
	public List<ErpStorageFlowDetail> getErpStorageFlowDetailList(List<PropertyFilter> filters){
		return erpStorageFlowDetailDAO.find(filters);
	}
	
	public ErpStorageFlowDetail getErpStorageFlowDetail(List<PropertyFilter> filters){
		return erpStorageFlowDetailDAO.findUniqueBy(filters);
	}
	
	public ErpStorageFlowDetail getErpStorageFlowDetail(String propertyName, Object value){
		return erpStorageFlowDetailDAO.findUniqueBy(propertyName, value);
	}

	public List<ErpStorageFlowDetail> getErpStorageFlowDetailList(Map<String, Object>map){
		return erpStorageFlowDetailDAO.findBy(map);
	}
	
	public List<ErpStorageFlowDetail> getErpStorageFlowDetailList(String hql, Map<String, Object>values){
		return erpStorageFlowDetailDAO.find(hql, values);
	}
	
}
